package com.htgd.gardenexpo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.htgd.gardenexpo.dto.GeConIntegralGoodsDTO;
import com.htgd.gardenexpo.entity.CommonResult;
import com.htgd.gardenexpo.entity.GeConIntegralGoods;
import com.htgd.gardenexpo.entity.GeConIntegralGoodsOrder;
import com.htgd.gardenexpo.page.GoodsQuery;
import com.htgd.gardenexpo.vo.GeConIntegralGoodsVO;

/**
 * @author: 王秀田
 * @date: 2024/11/13 17:16
 * @description: TODO
 */
public interface GeConIntegralGoodsService extends IService<GeConIntegralGoods> {

    /**
     * 添加积分商品
     * @param geConIntegralGoods
     */
    void add(GeConIntegralGoodsDTO geConIntegralGoods);

    /**
     * 查询积分商品列表
     * @param goodsQuery
     * @return
     */
    PageInfo<GeConIntegralGoods> pageList(GoodsQuery goodsQuery);

    /**
     * 获取预提交信息
     * @return
     */
    CommonResult<GeConIntegralGoodsVO> prepareSubmit(String goodsId, Integer num, String openId);

    /**
     * 积分商品确定支付
     * @param goods
     * @param openId
     * @return
     */
    CommonResult<GeConIntegralGoodsOrder> goodsSubmit(GeConIntegralGoods goods, String openId);
}
